<extend name="./base" />
<block name="pageContent">
    <link rel="stylesheet" href="{$Think.config.DOMAIN_URL}/Public/AdminTpl/css/s-settle.css">
    <div class="main-content">
        <!-- 头部面包屑导航条 -->
        <div class="breadcrumbs" id="breadcrumbs">
            <!--导航路径列表-->
            <ul class="breadcrumb no-margin-left">
                <li>
                    <a>管理后台</a>
                </li>
                <li class="action">
                    用户管理
                </li>
            </ul>
        </div>
        <!--页面容器-->
        <div class="page-content">
            <div class="nav-tab" style="position: relative">
                <ul class="nav-tab-title ">
                    <li class="nav-this">身份审核列表</li>
                </ul>
            </div>
            <div class="row">
                <div class="col-xs-12">
                    <form class="form-horizontal s_input-bgcolor" method="post" action="{$Think.config.DOMAIN_URL}/user/realList">
                        <div class="col-lg-3 col-md-6 col-sm-12 col-xs-12 pad-b20">
                            <div class="form-group">
                                <label class="col-sm-3 control-label text-right no-padding-right">状态： </label>
                                <div class="col-sm-8">
                                    <select class="form-control" name="realischeck">
                                        <option value="0">审核状态</option>
                                        <option value="1" <eq name="postArr.realischeck" value="1">selected</eq>>待审核</option>
                                        <option value="2" <eq name="postArr.realischeck" value="2">selected</eq>>审核通过</option>
                                        <option value="3" <eq name="postArr.realischeck" value="3">selected</eq>>审核不通过</option>
                                    </select>
                                </div>
                            </div>
                        </div>
                        <div class="col-lg-3 col-md-6 col-sm-12 col-xs-12 pad-b20">
                            <div class="form-group">
                                <label class="col-sm-3 control-label text-right no-padding-right"
                                       for="form-field-1-1">用户名： </label>

                                <div class="col-sm-8">
                                    <input type="text" id="form-field-1-1" placeholder="请输入用户名"
                                           class="form-control" name="name" value="{$postArr.name}">
                                </div>
                            </div>
                        </div>
                        <div class="col-lg-3 col-md-6 col-sm-12 col-xs-12 pad-b20">
                            <div class="form-group">
                                <label class="col-sm-3 control-label text-right no-padding-right"
                                       for="form-field-2-2">认证姓名： </label>
                                <div class="col-sm-8">
                                    <input type="text" id="form-field-2-2" placeholder="请输入认证姓名"
                                           class="form-control" name="realname" value="{$postArr.realname}">
                                </div>
                            </div>
                        </div>
                        <div class="col-lg-3 col-md-6 col-sm-12 col-xs-12 pad-b20">
                            <div class="form-group">
                                <label class="col-sm-3 control-label text-right no-padding-right"
                                       for="form-field-6-2">身份证号： </label>
                                <div class="col-sm-8">
                                    <input type="text" id="form-field-6-2" placeholder="请输入身份证号"
                                           class="form-control" name="cardid" value="{$postArr.cardid}">
                                </div>
                            </div>
                        </div>
                        <div class="col-lg-12 col-md-6 col-sm-12 col-xs-12 pad-b20 text-right">
                            <button type="submit" class="btn "
                                    style="width: 120px;    border-radius: 2rem; background: #fba40a!important;border-color: #fba40a;margin-left: 20px;">
                                查询
                            </button>
                        </div>
                    </form>
                    <div class="space"></div>
                    <div class="row">
                        <div class="col-xs-12">
                            <table id="sample-table-1"
                                   class="table table-hover">
                                <thead>
                                <tr>
                                    <th class="center">用户名</th>
                                    <th class="center">认证姓名</th>
                                    <th class="center">认证身份证</th>
                                    <th class="center">认证地址</th>
                                    <th class="center">审核状态</th>
                                    <th class="center">审核说明</th>
                                    <th class="center">审核时间</th>
                                    <th class="center">审核人</th>
                                    <th class="center" style="width:150px;">操作</th>
                                </tr>
                                </thead>
                                <tbody>

                                <empty name="resList">
                                    <tr class="s_tr-vertical">
                                        <td colspan="9" class="center" style="color: red;">没有查询到结果</td>
                                    </tr>
                                </empty>
                                <volist  name="resList" id="vo">
                                    <tr class="s_tr-vertical">
                                        <td class="center">{$vo.username}</td>
                                        <td class="center">{$vo.truename}</td>
                                        <td class="center">{$uesRes[$vo[id]].CarId}</td>
                                        <td class="center">{$uesRes[$vo[id]].CardAddress}</td>
                                        <eq name="vo.realischeck" value="1">
                                            <td class="center s_order-stated">待审核</td>
                                        <else />
                                            <eq name="vo.realischeck" value="2">
                                                <td class="center s_order-complete">审核通过</td>
                                            <else/>
                                                <td class="center">审核不通过</td>
                                            </eq>
                                        </eq>
                                        <td class="center">{$uesRes[$vo[id]].rcbReason|default='--'}</td>
                                        <td class="center">{$uesRes[$vo[id]].rcTime|default='--'}</td>
                                        <td class="center">{$uesRes[$vo[id]].rcUname|default='--'}</td>

                                        <td class="s_order-fun center s_order-funmargin">
                                            <eq name="vo.realischeck" value="1">
                                                <span><a href="{$Think.config.DOMAIN_URL}/user/realCheck?id={$vo.id}&page={$page}">审核</a></span>
                                            <else />
                                                <span><a href="{$Think.config.DOMAIN_URL}/user/realInfo?id={$vo.id}&page={$page}">详情</a></span>
                                            </eq>
                                        </td>
                                    </tr>
                                </volist>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
            <div class="text-center">
                {$pageShow}
            </div>
        </div>
    </div>

    <script>
        laydate.render({
            elem: '#start' //指定元素
        });
        laydate.render({
            elem: '#end' //指定元素
        });
    </script>
</block>